package com.squirrel.common.service;

import com.squirrel.common.entity.UserVideo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.squirrel.common.param.userVideo.EvaluateParam;
import com.squirrel.common.param.video.PageParam;
import com.squirrel.common.response.page.PageResult;
import com.squirrel.common.vo.userVideo.HistoryVO;
import com.squirrel.common.vo.userVideo.UserVideoInfoVO;
import com.squirrel.common.vo.video.VideoVO;

import java.util.List;

/**
 * <p>
 * UserVideoService 用户视频服务类
 * </p>
 *
 * @author 关远键
 * @since 2021/11/11 16:06
 */
public interface UserVideoService extends IService<UserVideo> {

    UserVideoInfoVO getByVideoId(Integer videoId);

    int insert(EvaluateParam param);

    PageResult<VideoVO> getCollect(Integer userId, PageParam pageParam);

    List<HistoryVO> getHistory(Integer userId);

//    Integer getCountByUserId(String userId);

}
